cmake_minimum_required(VERSION 3.10)
project(SakuraCodes)

set(CMAKE_CXX_STANDARD 17)

include_directories(${CMAKE_SOURCE_DIR})

aux_source_directory(Glad Glad_Source)
aux_source_directory(Component/Physics Physics)
aux_source_directory(Component/Renderer Renderer)
aux_source_directory(Component/UI UI)
aux_source_directory(Core Core_Source)
aux_source_directory(Includes Includes_Source)
aux_source_directory(Tools Tools_Source)
aux_source_directory(Component/Renderer/Base Renderer_Base)
aux_source_directory(Component/Renderer/Tools Renderer_Tools)

link_directories(${CMAKE_SOURCE_DIR}/libs)

add_executable(SakuraCodes
        ${Glad_Source}
        ${Physics}
		${Renderer}
		${UI}
        ${Renderer_Source}
        ${Core_Source}
        ${Includes_Source}
        ${Tools_Source}
        ${Renderer_Base}
        ${Renderer_Tools}
		Main.cpp
        glad.c
        )

target_link_libraries(SakuraCodes glfw3_debug)